package org.dromara.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.BusinessInformation;
import org.dromara.business.domain.bo.BusinessInformationBo;
import org.dromara.business.domain.vo.BusinessInformationVo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 信息Service接口
 *
 * @author zlj
 * @date 2024-11-18
 */
public interface BusinessInformationService extends IService<BusinessInformation> {

    /**
     * 查询信息
     */
    BusinessInformationVo queryById(Long id);

    /**
     * 查询信息列表
     */
    TableDataInfo<BusinessInformationVo> queryPageList(BusinessInformationBo bo, PageQuery pageQuery);

    /**
     * 查询信息列表
     */
    List<BusinessInformationVo> queryList(BusinessInformationBo bo);

    /**
     * 新增信息
     */
    Boolean insertByBo(BusinessInformationBo bo);

    /**
     * 修改信息
     */
    Boolean updateByBo(BusinessInformationBo bo);

    /**
     * 校验并批量删除信息信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 置顶信息
     * @param id
     */
    Boolean refresh(Long id,String type);

    Boolean reviewAdvertisements(BusinessInformationBo bo);
}
